package dto

import "hotel_Manager_Api/model/dbModel"

type UnitFood struct{
	 dbModel.Food
	 Unit dbModel.Unit `json:"unit"`
}

func FoodsToUnitFoods(source []dbModel.Food)[]UnitFood  {
	result := make([]UnitFood,len(source))
	for i,e := range source{
		result[i] = UnitFood{
			Food:e,
			}
	}
	return result
}